import { navList, reallyRouteList } from '@/router'
const showNavList = navList.filter(item => !item.hidden)
const router = {
  state: {
    constantRoutes: showNavList,
    reallyRouteList: reallyRouteList
  },
  mutations: {
    SET_ROUTES: (state, routes) => {
      state.addRoutes = routes
      state.routes = navList.concat(routes)
    }
  }
}

export default router